<%@attribute name="num" required="true" type="java.lang.Integer" %>
<%@variable name-given="flag" variable-class="java.lang.Boolean" scope="AT_BEGIN" %>
<%!
    public boolean fun(int n){
        int k=(int)Math.sqrt(n);
        for(int i=2;i<=k;i++)
            if(n%i==0)return false;
        return true;
    }
%>
<%
    jspContext.setAttribute("flag",fun(num));
%>